<?php

namespace maotool\orm\mapper;

class PageHelper
{

    protected static $LOCAL_PAGE = null;

    protected static $DEFAULT_COUNT = true;

    public static function startPage($pageNum, $pageSize)
    {
        self::$LOCAL_PAGE = new PageInfo();
        self::$LOCAL_PAGE->setPageNum($pageNum);
        self::$LOCAL_PAGE->setPageSize($pageSize);
    }

    public static function clearPage()
    {
        self::$LOCAL_PAGE = null;
    }

    /**
     * @return null
     */
    public static function getLocalPage()
    {
        return self::$LOCAL_PAGE;
    }

    /**
     * @param null $LOCAL_PAGE
     */
    public static function setLocalPage($LOCAL_PAGE)
    {
        self::$LOCAL_PAGE = $LOCAL_PAGE;
    }


}